public class Logic
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static boolean |
saved
saved: 1 if the state was saved
|
static double |
weather
weather: The weather of the week
|
static double |
weekweather
weekweather: The week the weather is on
|
| Constructor and Description |
|---|
Logic() |
| Modifier and Type | Method and Description |
|---|---|
static void |
begin()
Begin: Initializes the variables needed to run the simulation and calls to start the sim.
|
static void |
loadState(java.lang.String filename)
Load state: Loads the state from the save file
|
static void |
runSimulation()
Run simulation: Computes and stores the decision of each individual
Computes and prints the park success for the selected week
|
static void |
saveState(java.lang.String filename)
Save state: Saves the state to the file
|
public static double weather
public static double weekweather
public static boolean saved
public static void begin()
public static void runSimulation()
public static void saveState(java.lang.String filename)
filename - [String]public static void loadState(java.lang.String filename)
filename - [String]